{% extends "layout.html" %}
{% block title %}登陆{% endblock %}

{% block head %}
{{ super() }}
  <link href="{{ url_for('static', filename='css/login.css') }}" rel="stylesheet"/>
{% endblock %}

{% block content %}
<div class="login-form login-form-html">
  <div class="login-form-welcom">
    <div class="login-form-text">
      欢迎登陆Gamux.org!
    </div>
{% if error %}
    <div class="error"><strong>登录失败:</strong> {{ error }} </div>
{% endif %}
  </div>
  <form class="" method="post" action="">
{{ form.csrf_token }}
    <div class="row-rel login-email">
      <input type="email" id="email" name="email" placeholder="邮箱"/>
    </div>
    <div class="row-rel login-passwd">
      <input type="password" id="password1" name="password" placeholder="密码"/>
    </div>
    <button type="submit" class="row-button">登录</button>
    <button type="button" class="row-button login-form-forget-passwd">忘记密码</button>
    <a href="{{ url_for('register') }}"><button type="button" class="row-button">创建账户</button></a>
  </form>
</div>
{% endblock %}
